<div id="gn_bottom">
    <div class="gn_bpart1">
        <div class="wjyh_footer">
            <div class="gn_footer_info">
                <div class="info_column">
                    <h4 class="fht1">新手指南</h4>
                    <li><a href="http://www.wjyh.com/about_cat33_a48" title="免费注册" target="_blank">免费注册</a></li>
                    <li><a href="http://www.wjyh.com/about_cat33_a65" title="导购演示" target="_blank">导购演示</a></li>
                    <li><a href="http://www.wjyh.com/about_cat33_a478" title="清单采购" target="_blank">清单采购</a></li>
                    <li><a href="http://www.wjyh.com/about_cat33_a476" title="电子协议" target="_blank">电子协议</a></li>
                </div>
                <div class="info_column">
                    <h4 class="fht2">支付方式</h4>
                    <li><a href="http://www.wjyh.com/about_cat34_a473" title="快钱支付" target="_blank">快钱支付</a></li>
                    <li><a href="http://www.wjyh.com/about_cat34_a53" title="支付宝" target="_blank">支付宝</a></li>
                    <li><a href="http://www.wjyh.com/about_cat34_a468" title="微信支付" target="_blank">微信支付</a></li>
                    <li><a href="http://www.wjyh.com/about_cat34_a480" title="线下支付" target="_blank">线下支付</a></li>
                </div>
                <div class="info_column">
                    <h4 class="fht3">配送方式</h4>
                    <li><a href="http://www.wjyh.com/about_cat47_a54" title="配送范围" target="_blank">配送范围</a></li>
                    <li><a href="http://www.wjyh.com/about_cat47_a469" title="配送费用" target="_blank">配送费用</a></li>
                    <li><a href="http://www.wjyh.com/about_cat47_a55" title="配送查询" target="_blank">配送查询</a></li>
                    <li><a href="http://www.wjyh.com/about_cat47_a470" title="注意事项" target="_blank">注意事项</a></li>
                </div>
                <div class="info_column">
                    <h4 class="fht4">售后服务</h4>
                    <li><a href="http://www.wjyh.com/about_cat48_a72" title="售后政策" target="_blank">售后政策</a></li>
                    <li><a href="http://www.wjyh.com/about_cat48_a70" title="退换流程" target="_blank">退换流程</a></li>
                    <li><a href="http://www.wjyh.com/about_cat48_a58" title="退款说明" target="_blank">退款说明</a></li>
                    <li><a href="http://www.wjyh.com/about_cat48_a71" title="取消订单" target="_blank">取消订单</a></li>
                </div>
                <div class="info_column">
                    <h4 class="fht5">会员中心</h4>
                    <li><a href="http://www.wjyh.com/about_cat49_a73" title="修改收货地址" target="_blank">修改收货地址</a></li>
                    <li><a href="http://www.wjyh.com/about_cat49_a73" title="修改密码" target="_blank">修改密码</a></li>
                    <li><a href="http://www.wjyh.com/about_cat49_a50" title="密码找回及安全设置" target="_blank">密码找回及安全设置</a></li>
                    <li><a href="http://www.wjyh.com/about_cat49_a49" title="会员等级和积分规则" target="_blank">会员等级和积分规则</a></li>
                </div>
                <div class="info_column">
                    <h4 class="fht6">关于我们</h4>
                    <li><a href="http://www.wjyh.com/about_cat50_a63" title="关于文具1号" target="_blank">关于文具1号</a></li>
                    <li><a href="http://www.wjyh.com/about_cat50_a75" title="广告服务" target="_blank">广告服务</a></li>
                    <li><a href="http://www.wjyh.com/about_cat50_a471" title="合作品牌" target="_blank">合作品牌</a></li>
                    <li><a href="http://www.wjyh.com/about_cat50_a474" title="联系我们" target="_blank">联系我们</a></li>
                </div>
            </div>
        </div>
    </div>

    <div class="gn_footer_black">
        <a href="<?php echo base_url(); ?>">首页</a>&nbsp;&nbsp;|&nbsp;&nbsp;
        <a href="http://www.wjyh.com/about_cat50_a63">关于文具1号</a>&nbsp;&nbsp;|&nbsp;&nbsp;
        <a target="_blank" href="http://m.kuaidi100.com">快递查询</a>&nbsp;&nbsp;|&nbsp;&nbsp;
        <a target="_blank" href="http://www.wjyh.com/sitemap.html">网站地图</a>&nbsp;&nbsp;|&nbsp;&nbsp;
        <a href="http://www.wjyh.com/about_cat50_a474">联系我们</a>&nbsp;&nbsp;|&nbsp;&nbsp;
        <a href="http://zixun.wjyh.com/">办公资讯</a>
        <!--end-->
    </div>
    <div class="gn_bpart2 root1">
        <div class="w1190 clearfix">
            <div class="all_foot1">
                Copyright © 2010-2020 上海易号网络科技有限公司<a href="http://www.wjyh.com">wjyh.com</a> 保留一切权利 沪ICP备13023872号 营业执照
                <img
                        src="public/images/police.png" border="0" style="position:relative;top: 4px;"><a rel="nofollow"
                                                                                                         target="_blank"
                                                                                                         href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=31010802001236"
                                                                                                         style="color:#999">沪公网安备
                    31010802001236号</a>
                <br>
                客服热线：4008-215-248 工作日时间：周一至周五 9:00-21:30
                <script type="text/javascript"></script>
                <span id="cnzz_stat_icon_1256871543"><a href="http://www.cnzz.com/stat/website.php?web_id=1256871543"
                                                        target="_blank" title="站长统计"><img border="0" hspace="0"
                                                                                          vspace="0"
                                                                                          src="http://icon.cnzz.com/img/pic1.gif"></a></span>
                <script src=" http://s11.cnzz.com/z_stat.php?id=1256871543&amp;show=pic1"
                        type="text/javascript"></script>
                <script src="http://c.cnzz.com/core.php?web_id=1256871543&amp;show=pic1&amp;t=z" charset="utf-8"
                        type="text/javascript"></script>
            </div>
            <div class="all_foot2">
                <div class="footLogo">
                    <span style="display:inline-block;position:relative;width:auto;"><a
                                href="https://ss.knet.cn/verifyseal.dll?sn=e13081931010042052yqcz000000&amp;ct=df&amp;a=1&amp;pa=0.6934551893015546"
                                id="kx_verify" tabindex="-1" target="_blank" kx_type="图标式"
                                style="display:inline-block;"><img
                                    src="http://rr.knet.cn/static/images/logo/cnnic_en.png" style="border:none;"
                                    oncontextmenu="return false;" alt=""></a></span>
                </div>
                <div class="footLogo">
                    <a target="_blank"
                       href="http://218.242.124.22:8081/businessCheck/verifKey.do?showType=extShow&amp;serial=9031000020160317093416000000235657-SAIC_SHOW_310000-20160115190605734361&amp;signData=MEYCIQDNql62UH+UZLZdPqkohYJKHNip+3EJvyNNYHdArZxb9AIhALrkDfzZUJRfVNiuWOg9JGxdFSdMRlWlFdyOlsHr/wkk &#10;&#10;">
                        <img src="public/images/3.jpg" border="0">
                    </a>
                </div>
                <div class="footLogo">
                    <img src="public/images/5.jpg">
                </div>
                <div class="footLogo">
                    <img src="public/images/6.jpg">
                </div>
            </div>
        </div>
    </div>
</div>

<!-- common js -->
<!--<script type="text/javascript" src="public/js/jquery.min.js"></script>-->





<script type="text/javascript" src="public/js/layer.js"></script>

<?php
$url = $this->config->item("shop_url") . 'companymanagerapi/company_logout/';
$data_arr['time'] = time();
$data_arr['key'] = md5($this->config->item("token_const_wjyh") . $data_arr['time']);
$check_url = $this->config->item("shop_url") . 'companymanagerapi/user_status/';
?>
<?php
if ($this->session->customer_id && $this->config->item('env') != 'local') {
    ?>
    <script type="text/javascript">
        $.ajax({
            type: "get",
            dataType: "jsonp",
            url: "<?php echo $check_url;?>",
            data: {'time': '<?php echo $data_arr['time'];?>', 'key': '<?php echo $data_arr['key'];?>'},
            jsonp: 'callback',
            async: false,
            jsonpCallback: "abc",
            success: function (data) {
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                console.log('someting is wrong')
            }
        });

        function abc(data) {
            console.log(data)
            if (data['code'] == 200) {
                console.log('ok');
            } else {
                console.log('no');
                $.ajax({
                    type: "get",
                    url: "<?php echo base_url();?>login/logout_ajax",
                    dataType: "json",
                    success: function (data) {

                        window.location.reload();
                    },
                    error: function (XMLHttpRequest, textStatus, errorThrown) {
                        console.log('someting is wrong')
                    }
                });
            }
        }
    </script>
    <?php
}
?>



<script type="text/javascript">
    function logout() {
        var results;
        $.ajax({
            type: "get",
            dataType: "jsonp",
            url: "<?php echo $url;?>",
            data: {'time': '<?php echo $data_arr['time'];?>', 'key': '<?php echo $data_arr['key'];?>'},
            jsonp: 'callback',
            async: false,
            jsonpCallback: "getMessage",
            success: function (data) {
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                console.log('someting is wrong')
            }
        });
    }

    function getMessage(data) {
        if (data['code'] == 200) {
            console.log('ok');
        } else {
            console.log('no');
        }
        window.location.href = '<?php echo base_url(); ?>login/logout';
    }
</script>

<?php if ($alert = $this->session->flashdata('alert')) { ?>
    <script type="text/javascript">
        $(function () {
            layer.alert('<?php echo $alert;?>');
        })
    </script>
    <?php
}
?>
<?php if ($msg = $this->session->flashdata('msg')) { ?>
    <script type="text/javascript">
        $(function () {
            layer.msg('<?php echo $msg;?>');
        })
    </script>
    <?php
}
?>


<script>
    // 去商城那边登录
    // var webUrl = 'http://localhost:8888/boxapi/server/';
    //    $.ajax({
    //        type: "get",
    //        dataType: "jsonp",
    //        url: webUrl + 'index.php',
    //        data: {app: 'mall/MDefault', act: 'getCartNum'},
    //        jsonp: 'callback',
    //        async: false,
    //        success: function (data) {
    //            console.log(data);
    //            $(".gn_mybcnum").html(data.cart_goods_kinds);
    //            if (data.err == 0) {
    //                $("#login-info").html('您好！<a href="' + webUrl + 'bBMember.html">' + data.data.username + '</a > &nbsp;欢迎来文具1号商城！<a href="javascript:;" onclick="logout()" class="pl15" id="logout">退出</a >');
    //                // 商城登录
    //                var bool = 1;
    //                if (bool) {
    //                    $.ajax({
    //                        type: "POST",
    //                        url: "index/login",
    //                        data: {'shop_customer_id': 11509},
    //                        dataType: "json",
    //                        success: function (data) {
    //                            if(data.code == 0)
    //                            {
    //                                if(data.data.activation == 0)
    //                                {
    //                                    // 跳转到激活页面
    ////                                    window.location.href = 'index/index_activation';
    //                                }
    //                            } else {
    //                                layer.alert('出错啦');
    //                            }
    //
    //                        }
    //                    });
    //                }
    //            } else {
    //                $("#login-info").html('您好！游客 &nbsp;欢迎来文具1号商城！<a href="' + webUrl + 'mMLogin.html" class="pl15">登录</a ><a href="' + webUrl + 'mMLogin.html&reg=1" class="pl15">免费注册</a >');
    //            }
    //        }
    //    })


    // 登出
    // function logout() {
    //     // 商城退出登录接口
    //     var logout_url = 'test/logout_api';
    //     $.ajax({
    //         type: "get",
    //         dataType: "jsonp",
    //         url: webUrl + logout_url,
    //         data: {},
    //         jsonp: 'callback',
    //         async: false,
    //         success: function (data) {
    //             if(data.code == 200)
    //             {
    //                 $.ajax({
    //                     type: "POST",
    //                     url: "login/logout",
    //                     data: '',
    //                     dataType: "json",
    //                     success: function (data) {
    //                         if(data.code == 0)
    //                         {
    //                             window.location.href = 'index';
    //                         } else {
    //                             layer.alert('未能退出');
    //                         }
    //                     }
    //                 });
    //             }
    //         }
    //     });
    // }

</script>

